home *** CD-ROM | disk | FTP | other *** search
/ Especial Multimedia / Especial Multimedia.iso / Multimed / Prg / DEPAL.ZIP / SOURCE.ZIP / LOADFORM.FRM < prev    next >
Text File  |  1995-03-13  |  3KB  |  120 lines

  1. VERSION 2.00
  2. Begin Form LoadForm 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "File Name"
  6.    ClientHeight    =   3375
  7.    ClientLeft      =   2910
  8.    ClientTop       =   1500
  9.    ClientWidth     =   4080
  10.    ControlBox      =   0   'False
  11.    Height          =   3780
  12.    Left            =   2850
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   3375
  17.    ScaleWidth      =   4080
  18.    Top             =   1155
  19.    Width           =   4200
  20.    Begin CommandButton comCancel 
  21.       Caption         =   "Cancel"
  22.       Height          =   375
  23.       Left            =   2880
  24.       TabIndex        =   5
  25.       Top             =   2880
  26.       Width           =   1035
  27.    End
  28.    Begin CommandButton comAccept 
  29.       Caption         =   "Accept"
  30.       Height          =   375
  31.       Left            =   120
  32.       TabIndex        =   4
  33.       Top             =   2880
  34.       Width           =   1035
  35.    End
  36.    Begin FileListBox File 
  37.       Height          =   1785
  38.       Left            =   2160
  39.       Pattern         =   "*.bmp;*.dib"
  40.       TabIndex        =   2
  41.       Top             =   420
  42.       Width           =   1755
  43.    End
  44.    Begin DirListBox Direct 
  45.       Height          =   1830
  46.       Left            =   120
  47.       TabIndex        =   1
  48.       Top             =   420
  49.       Width           =   1935
  50.    End
  51.    Begin DriveListBox Drive 
  52.       Height          =   315
  53.       Left            =   120
  54.       TabIndex        =   0
  55.       Top             =   60
  56.       Width           =   3795
  57.    End
  58.    Begin Label Label 
  59.       BorderStyle     =   1  'Fixed Single
  60.       Height          =   315
  61.       Left            =   120
  62.       TabIndex        =   3
  63.       Top             =   2400
  64.       Width           =   3795
  65.    End
  66. End
  67. Option Explicit
  68.  
  69. Sub accept ()
  70.     Drivename = Drive.Drive
  71.     Pathname = Direct.Path
  72.     Filepath = Label.Caption
  73.     FileName = File.FileName
  74.     Success = True
  75.     Unload Me
  76. End Sub
  77.  
  78. Sub comAccept_Click ()
  79.     Call accept
  80.     Unload Me
  81. End Sub
  82.  
  83. Sub comCancel_Click ()
  84.     Success = False
  85.     Unload Me
  86. End Sub
  87.  
  88. Sub Direct_Change ()
  89.     File.Path = Direct.Path
  90. End Sub
  91.  
  92. Sub Drive_Change ()
  93.     Direct.Path = Drive.Drive
  94. End Sub
  95.  
  96. Sub File_Click ()
  97.     Dim n As Integer
  98.     Dim s As String
  99.  
  100.     n = Len(File.Path)
  101.     s = Mid$(File.Path, n, 1)
  102.     If s = "\" Then
  103.         Label.Caption = File.Path & File.FileName
  104.     Else
  105.         Label.Caption = File.Path & "\" & File.FileName
  106.     End If
  107.  
  108. End Sub
  109.  
  110. Sub File_DblClick ()
  111.     Call accept
  112. End Sub
  113.  
  114. Sub Form_Load ()
  115.     Label.Caption = FileName
  116.     Drive.Drive = Drivename
  117.     Direct.Path = Pathname
  118. End Sub
  119.  
  120.